package com.shalanzi.hospital.base;

import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Dream_飞翔
 * @date 2021/9/25
 * @time 20:41
 * @email 1072876976@qq.com
 */
public class BasePath {
    @ModelAttribute
    public void preHandler(HttpServletRequest request){
        request.setAttribute("path", request.getContextPath());
    }
}
